
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}


    <div class="form-group">
        <label for="c-color"  class="control-label col-xs-12 col-sm-2">{:__('Color')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-color" data-rule='required' class="form-control" name="row[color]" type="text" value="{$row.color}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Messagedisplay')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[message_display]', ['1'=>__('Messagedisplay1'), '2'=>__('Messagedisplay2')], $row['message_display'])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-message_title"  class="control-label col-xs-12 col-sm-2">{:__('MessageTitle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-message_title" data-rule='required' class="form-control" name="row[message_title]" type="text" value="{$row.message_title}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mpopupdisplay')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[m_popup_display]', ['1'=>__('Mpopupdisplay1'), '2'=>__('Mpopupdisplay2')], $row['m_popup_display'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-m_popup_title1"  class="control-label col-xs-12 col-sm-2">{:__('Mpopuptitle1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-m_popup_title1" data-rule='required' class="form-control" name="row[m_popup_title1]" type="text" value="{$row.m_popup_title1}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-m_popup_title2"  class="control-label col-xs-12 col-sm-2">{:__('Mpopuptitle2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-m_popup_title2" data-rule='required' class="form-control" name="row[m_popup_title2]" type="text" value="{$row.m_popup_title2}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-m_popup_img" class="control-label col-xs-12 col-sm-2">{:__('Mpopupimg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-m_popup_img" data-rule="" class="form-control" size="50" name="row[m_popup_img]" type="text" value="{$row.m_popup_img}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-m_popup_img" class="btn btn-danger plupload" data-input-id="c-m_popup_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-m_popup_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-m_popup_img" class="btn btn-primary fachoose" data-input-id="c-m_popup_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-m_popup_img"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-m_popup_img"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rpopupdisplay')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[r_popup_display]', ['1'=>__('Rpopupdisplay1'), '2'=>__('Rpopupdisplay2')], $row['r_popup_display'])}
        </div>
    </div>


    <div class="form-group">
        <label for="c-r_popup_title1"  class="control-label col-xs-12 col-sm-2">{:__('Rpopuptitle1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-r_popup_title1" data-rule='required' class="form-control" name="row[r_popup_title1]" type="text" value="{$row.r_popup_title1}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-r_popup_title2"  class="control-label col-xs-12 col-sm-2">{:__('Rpopuptitle2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-r_popup_title2" data-rule='required' class="form-control" name="row[r_popup_title2]" type="text" value="{$row.r_popup_title2}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
